# Using printf from libc
# Version for x86 processor
.section .data
output:
	.asciz "The processor Vendor ID is '%s'\n"

.section .bss
	.lcomm	buffer, 12
.section .text
.globl _start
_start:
	nop
	movl	$0, %eax
	cpuid
	movl	$buffer, %edi
	movl	%ebx, (%edi)
	movl	%edx, 4 (%edi)
	movl	%ecx, 8 (%edi)
	pushl	$buffer
	pushl	$output
	call	printf
	addl	$8, %esp
	pushl	$0
	call	exit

